﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchFrame.aspx.cs" Inherits="Sagacity.NC.Web.BaokaoManager.HighSchool.BatchFrame" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../resources/css/main.css" />

    <script type="text/javascript" src="../../resources/JS/ExampleTab.js"></script>

    <script type="text/javascript">
        var loadExample = function(href, id) {
            var tab = ExampleTabs.getComponent(id);

            if (tab) {
                ExampleTabs.setActiveTab(tab);
            } else {
                createExampleTab(id, href);
            }
        }

        var selectionChaged = function(dv, nodes) {
            if (nodes.length > 0) {
                var url = nodes[0].getAttribute("ext:url"),
                    id = nodes[0].getAttribute("ext:id");

                loadExample(url, id);
            }
        }

        var viewClick = function(dv, e) {
            var group = e.getTarget("h2", 3, true);

            if (group) {
                group.up("div").toggleClass("collapsed");
            }
        }
    </script>
    <script type="text/javascript">
        /*----打开或折叠处于西方位置的Panel，true，折叠；false，打开------*/
        function openOrCollapseWest(oc) {
            oc ? pnlWest.collapse() : pnlWest.expand();
        }
    </script>
</head>
<body>
<ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
    <form id="form1" runat="server">
    <div>
    <asp:HiddenField ID="hidResouceId" runat="server" Value="157" />
    <ext:ViewPort ID="ViewPort1" runat="server">
        <Body>
            <ext:BorderLayout ID="BorderLayout1" runat="server">
                <West Collapsible="true" CollapseMode="Mini" Split="true">
                    <ext:Panel runat="server" Icon="UserSuit"  Frame="true" bodyBorder ="false"  Border="false"  AutoScroll="true" Header="false" Width="250" ID="pnlWest">
                       <AutoLoad Url="BatchTree.aspx?ResourceId=157" Mode="IFrame" NoCache="true"></AutoLoad>
                    </ext:Panel>     
                </West>
                <Center>
                    <ext:TabPanel ID="tabPositionInfoTabs" runat="server" ActiveTabIndex="0" EnableTabScroll="true">
                        <Tabs>
                            <ext:Tab ID="tabCenterPanel" runat="server" Icon="ApplicationViewList" Title="批次及阶段定义" AutoScroll="true">
                                <AutoLoad Mode="IFrame" NoCache="true" ShowMask="true" MaskMsg="批次及阶段定义....">                                    
                                </AutoLoad>
                                <Listeners>
                                    <Activate Handler="javascript:openOrCollapseWest(false);" />
                                    <Deactivate Handler="javascript:openOrCollapseWest(true);" />
                                </Listeners>
                            </ext:Tab>
                        </Tabs>
                        <Plugins>
                            <ext:TabCloseMenu ID="TabCloseMenu1" runat="server" />
                        </Plugins>
                    </ext:TabPanel>
                </Center>
            </ext:BorderLayout>
        </Body>
    </ext:ViewPort>
    </div>
    </form>
</body>
</html>
